package com.muyu.danmo.controller;

import com.muyu.common.core.domain.Result;
import com.muyu.danmo.service.DanmoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * DanmoController
 *
 * @author LeYang
 * on 2024/11/18
 */
@RestController
@RequestMapping("/controller")
public class DanmoController {
    @Autowired
    private DanmoService danmoService;
    @PostMapping("add")
    private Result add(String name){
        return danmoService.add(   name);
    }
}
